﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;

namespace 高级控件演示.Views.Dialogs
{
    /// <summary>
    /// PlayPigeonDialog.xaml 的交互逻辑
    /// </summary>
    public partial class PlayPigeonDialog : UserControl
    {
        //private Storyboard _storyboard;

        public PlayPigeonDialog()
        {
            InitializeComponent();

            //Loaded += PlayPigeonDialog_Loaded;
        }

        private void PlayPigeonDialog_Loaded(object sender, RoutedEventArgs e)
        {
            //StartAnimation();
        }

        private void StartAnimation()
        {
            //// 创建动画
            //_storyboard = new Storyboard();

            //// 添加到Canvas
            //Canvas.SetLeft(lstMove, 0); // 初始位置
            //Canvas.SetTop(lstMove, 0);

            //// 启动动画
            //_storyboard.Begin();
        }
    }
}
